#include "aerial\Scene\Scene.h"
#include "aerial\Scene\SceneManager.h"
#include "aerial\Core\NetIO.h"
#include "aerial\Core\Acc.h"

using namespace air;

hgeFont* IScene::fnt = 0;

void IScene::beforeInitialize(SceneManager* _sceneManager, 
	HGE* _hge, 
	hgeGUI* _gui, 
	hgeResourceManager* _hgeResMan, 
	NetIO* _netIO,
	Acc* _acc	)
{
	sceneManager = _sceneManager;
	hge = _hge;
	gui = _gui;
	hgeResMan = _hgeResMan;
	netIO = _netIO,
	acc = _acc;
	fnt = hgeResMan->GetFont("fnt.original");
}

void IScene::leaveCounter()
{
	++leaveCount;
	if (leaveCount >= elmtCount) {
		gui->Leave();
	}
}

IScene::IScene()
{
	elmtCount = 0;
	leaveCount = 0;
}
